
export const LocalRequestAllowed = async (ctx) => {
    // 只允许本机请求
  return new Promise((resolve, reject) => {
    if (ctx.ip === '127.0.0.1') {
      resolve(true)
    } else {
      reject(new Error('直接两行泪'))
    }
  })
}
